package com.xxx.yuedong.mall.controller.form;

import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author hc
 * @date 2023/09/03 19:05
 **/

@Data
public class DirCreateOrderForm {
    @NotNull
    private String receiverName;

    @NotNull
    private String receiverMobile;

    @NotNull
    private String receiverAddress;

    private Integer postage = 0;

    private Integer paymentType = 1;

    @NotNull
    private Integer productId;

    @NotNull
    private Integer quantity;

    @Override
    public String toString() {
        return "CreateOrderReq{" +
                "receiverName='" + receiverName + '\'' +
                ", receiverMobile='" + receiverMobile + '\'' +
                ", receiverAddress='" + receiverAddress + '\'' +
                ", postage=" + postage +
                ", paymentType=" + paymentType +
                '}';
    }
}
